#ifndef STDDEF_H
#define STDDEF_H

#ifndef ptrdiff_t
#define ptrdiff_t int
#endif
#ifndef wchar_t
#define wchar_t short
#endif
#ifndef size_t
#define size_t int
#endif
#ifndef wint_t
#define wint_t	int
#endif
#ifndef sig_t
#define sig_t int
#endif

#undef NULL
#if defined(__cplusplus)
#define NULL 0
#else
#define NULL ((void *)0)
#endif

#undef offsetof
#ifdef __compiler_offsetof
#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)
#else
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif

#endif
